package redlib.backend.service.impl;

import nonapi.io.github.classgraph.utils.Assert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import redlib.backend.dao.TestMapper;
import redlib.backend.dto.TestDTO;
import redlib.backend.model.Test;
import redlib.backend.service.TestService;

import static nonapi.io.github.classgraph.utils.Assert.*;

@Service
public class TestServiceImpl implements TestService {
    @Autowired
    private TestMapper testMapper;
    @Override
    public void insert( TestDTO testDTO) {
        Test test = new Test();
        test.setAge(testDTO.age);
        test.setName(testDTO.name);
        testMapper.insert(test);


    }
}
